﻿using ITTestingSystem.Controllers;

namespace ITTestingSystem.Extentions.Modules.EmailService
{
    public class MailService : IMailService
    {
        private readonly MailController _mailController;

        public MailService(MailController mailController)
        {
            _mailController = mailController;
        }

        void IMailService.ConfirmRegistration(string email, string token)
        {
            var emailResult = _mailController.ConfirmRegistration(email, token);

            emailResult.Deliver();
        }
    }
}